package org.mayanjun.code.dalint.mybatis;

import org.apache.ibatis.session.SqlSession;
import org.mayanjun.code.dalint.Sharding;

/**
 * DataBaseRouter
 *
 * @author mayanjun(6/24/16)
 */
public interface DataBaseRouter {

    SqlSession getDataBaseSqlSession();

    SqlSession getMasterDataBaseSqlSession();

    SqlSession getDataBaseSqlSession(Sharding sharding, Object source);

    String getUsingDataBase();

    void useDataBase(String dataBaseName);
}
